package com.streetpower.dao;

import com.streetpower.facade.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by ding on 2017/11/12.
 */
@Mapper
public interface UserDao {

    User selectUserByUserName(String userName);

/*    @Select(value = "select * from girl where girl.age = #{age}")
    //其他名称和数据库一样的 自动映射 不一样的需要写@result
    @Results({
            @Result(property = "userName",  column = "user_name" ),
            @Result(property = "cupMsg",  column = "cup_msg" ),
    })*/
    //List<Girl> getUserByAge(int age);

    List<User> getUsers();
}
